package nsoft.swing.sample;

import nsoft.swing.demo.DemoPanelFlow;
import nsoft.swing.sample.beans.Person;
import nsoft.swing.sample.beans.Person1;
import nsoft.swing.window.ApplicationController;
import nsoft.swing.window.DefaultApplictionContext;
import nsoft.util.UiModel;

public class Demo {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		/*DemoPanelBean demo = new DemoPanelBean();
		demo.setCenter("Test");
		demo.setEast("east");
		demo.setNorth("north");
		demo.setSouth("south");
		demo.setWest("west");*/
		Person person = new Person();
		person.setFirstName("firstName");
		person.setLastName("lastName");
		person.setAge(25);
		person.setDoorNo("doorNo");
		person.setStreet("street");
		DefaultApplictionContext applictionContext = new DefaultApplictionContext();
		ApplicationController applicationController = applictionContext.openSession();
		UiModel model = new UiModel("Test",person);
		/*DemoPanelFlow flow =new DemoPanelFlow();
		new DemoPanelFlow().setCenter("center");
		model.addBean(new Person1(),"Person");
		model.addBean(new Person1(),"Person");
		model.addBean(new Person1(),"Person");*/
		applicationController.openScreen(model);

		//applicationController.startApplication();

	}

}
